package com.bob.light.config

import com.tuya.smart.android.user.bean.User

object UserConfig {

    private var user: User? = null

    fun save(user: User?) {
        user?.let {
            saveToMemory(user)
        }
    }

    private fun saveToMemory(user: User) {
        this.user = user
    }

    fun queryUseInfo(): User? = user

}